package com.benjaminwan.read.free.ui.net

import androidx.paging.PagedList
import com.airbnb.mvrx.Async
import com.airbnb.mvrx.MvRxState
import com.airbnb.mvrx.Uninitialized
import com.benjaminwan.read.free.model.bean.DetailBean
import com.benjaminwan.read.free.model.bean.DetailListBean
import com.benjaminwan.read.free.model.result.LoginResult
import com.benjaminwan.read.free.model.result.ThreadResult
import com.benjaminwan.read.free.model.result.VersionResult

data class NetState(
    val username: String = "",
    val password: String = "",
    val questionId: Int = 0,
    val answer: String = "",
    val threadDetail: DetailListBean? = null,
    val loginRequest: Async<LoginResult> = Uninitialized,
    val threadRequest: Async<ThreadResult> = Uninitialized,
    val details: Async<PagedList<DetailBean>> = Uninitialized,
    val postRequest: Async<String> = Uninitialized,
    val versionRequest: Async<VersionResult> = Uninitialized
) : MvRxState